package org.jeecg.modules.manage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 服务任务
 * @Author: yfkj
 * @Date:   2023-01-05
 * @Version: V1.0
 */
@Data
@TableName("caishui_service_task")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="caishui_service_task对象", description="服务任务")
public class CaishuiServiceTask implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;

	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;

	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;

	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;

	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;

	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;

	/**税源地ID*/
	@Excel(name = "税源地ID", width = 15, dictTable = "caishui_service_company", dicText = "name", dicCode = "id")
	@Dict(dictTable = "caishui_service_company", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "税源地ID")
    private String companyId;

	/**商户ID*/
	@Excel(name = "商户ID", width = 15, dictTable = "caishui_business", dicText = "name", dicCode = "id")
	@Dict(dictTable = "caishui_business", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "商户ID")
    private String businessId;

	/**签约服务类型*/
	@Excel(name = "签约服务类型", width = 15, dictTable = "caishui_signing_service", dicText = "name", dicCode = "id")
	@Dict(dictTable = "caishui_signing_service", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "签约服务类型")
    private String signingService;

	/**任务标题*/
	@Excel(name = "任务标题", width = 15)
    @ApiModelProperty(value = "任务标题")
    private String title;

	/**任务介绍*/
	@Excel(name = "任务介绍", width = 15)
    @ApiModelProperty(value = "任务介绍")
    private String introduce;

	/**合作邀请码（微信小程序码）*/
	@Excel(name = "合作邀请码（微信小程序码）", width = 15)
    @ApiModelProperty(value = "合作邀请码（微信小程序码）")
    private String invitationCodeWx;

	/**合作邀请码（支付宝小程序码）*/
	@Excel(name = "合作邀请码（支付宝小程序码）", width = 15)
    @ApiModelProperty(value = "合作邀请码（支付宝小程序码）")
    private String invitationCodeZfb;

	/**状态：0-关闭，1-开启*/
	@Excel(name = "状态：0-关闭，1-开启", width = 15, dicCode = "status")
    @Dict(dicCode = "status")
    @ApiModelProperty(value = "状态：0-关闭，1-开启")
    private Integer status;

	/**审核状态：0-审核中，1-审核通过，2-审核拒绝*/
	@Excel(name = "审核状态：0-审核中，1-审核通过，2-审核拒绝", width = 15, dicCode = "check_status")
	@Dict(dicCode = "check_status")
    @ApiModelProperty(value = "审核状态：0-审核中，1-审核通过，2-审核拒绝")
    private Integer checkStatus;
}
